package com.toune.villager.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.toune.villager.R
import com.zia.easybookmodule.bean.Catalog
import kotlinx.android.synthetic.main.adapter_catalog.view.*

class CatalogAdapter(layoutResId: Int, data: MutableList<Catalog>?) :
    BaseQuickAdapter<Catalog, BaseViewHolder>(layoutResId, data) {
    override fun convert(holder: BaseViewHolder, item: Catalog) {
        holder.setText(R.id.nameTv, item.chapterName)
    }
}